package com.yky.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * 药物临床试验机构资格认定证书
 * 
 * @author vimesly
 * 
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "work_organization_records_certificate")
public class OrganizationRecordsCertificate implements Serializable{

	private Integer id;

	private String pdf; // pdf
	private String certNumber; // 证书编号
	private String affirmationProfession; // 认定专业
	private String startDate; // 有效期（开始日期）
	private String endDate; // 有效期（结束日期）
	
	private OrganizationRecords organizationRecords;
	
	private String username;

	@Id
	@GeneratedValue
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "pdf")
	public String getPdf() {
		return pdf;
	}

	public void setPdf(String pdf) {
		this.pdf = pdf;
	}

	@Column(name = "affirmation_profession")
	public String getAffirmationProfession() {
		return affirmationProfession;
	}

	public void setAffirmationProfession(String affirmationProfession) {
		this.affirmationProfession = affirmationProfession;
	}

	@Column(name = "start_date")
	public String getStartDate() {
		return startDate;
	}

	public void setStartDate(String startDate) {
		this.startDate = startDate;
	}

	@Column(name = "end_date")
	public String getEndDate() {
		return endDate;
	}

	public void setEndDate(String endDate) {
		this.endDate = endDate;
	}

	@Column(name = "cert_Number")
	public String getCertNumber() {
		return certNumber;
	}

	public void setCertNumber(String certNumber) {
		this.certNumber = certNumber;
	}

	@ManyToOne
	@JoinColumn(name = "organization_records_id")
	public OrganizationRecords getOrganizationRecords() {
		return organizationRecords;
	}

	public void setOrganizationRecords(OrganizationRecords organizationRecords) {
		this.organizationRecords = organizationRecords;
	}
	
	@Column(name = "username")
	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

}
